/* 通知中心样式文件 */

/* 通知头部 */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.notification-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.notification-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mark-read-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2A5CAA;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mark-read-btn:hover {
    background: #1e4788;
}

/* 通知容器 */
.notifications-container {
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.notifications-list {
    padding: 0;
}

/* 通知项目 */
.notification-item {
    padding: 24px;
    border-bottom: 1px solid #EAEEF4;
    transition: background-color 0.2s;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background-color: #F9FAFB;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #F0F9FF;
    border-left: 4px solid #2A5CAA;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1F2937;
}

.notification-date {
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 12px;
}

.notification-summary {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
}

/* 校园网访问标签 */
.campus-network-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #EF4444;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    z-index: 1;
}

/* 通知统计 */
.notification-stats .stat-item {
    text-align: center;
}

.notification-stats .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #2A5CAA;
    margin-bottom: 4px;
}

.notification-stats .stat-label {
    font-size: 12px;
    color: #6B7280;
}

/* 错误消息样式 */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #EF4444;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    margin: 20px;
}

.error-message::before {
    content: "⚠️";
    display: block;
    font-size: 24px;
    margin-bottom: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notifications-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .notification-stats {
        justify-content: center;
    }
    
    .notification-filters {
        justify-content: center;
    }
    
    .notification-item {
        padding: 16px;
    }
    
    .campus-network-badge {
        top: 8px;
        right: 8px;
        font-size: 10px;
        padding: 3px 6px;
    }
}
